<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button onclick="myfunction()">点击测试document.write函数</button>
		<script type="text/javascript">
			function myfunction(){
				document.write(Date());
			}
		</script>
	</body>
</html>
